package com.ccut.xunfeiSpringboot.service;/*
 * ClassName: QuestionService
 * Package: com.ccut.xunfeiSpringboot.service
 * Description:
 * @Author 刘千湫
 * @Create 2025/7/12 10:14
 * @Version 1.0
 */
import com.ccut.xunfeiSpringboot.entity.Question;
import java.util.List;

public interface QuestionService {

    List<Question> getAllQuestions();

    Question getQuestionById(Integer id);
    List<Question> getQuestionsByPage(Integer pageNum, Integer pageSize);

    void addQuestion(Question question);

    void updateQuestion(Question question);

    void deleteQuestion(Integer id);
}
